﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;

namespace DAO
{
    public class ThamSoDao
    {
        public int LayGioiHanNamSX()
        {
            DoixeDataContext DX = new DoixeDataContext();
            IEnumerable<THAMSO> tsDto;
            tsDto = from ts in DX.THAMSOs select ts;
            return Convert.ToInt32(tsDto.Single().GioHanNamSX);
        }
        public int KhinhNghiemToiThieu()
        {
            DoixeDataContext DX = new DoixeDataContext();
            IEnumerable<THAMSO> tsDto;
            tsDto = from ts in DX.THAMSOs select ts;
            return Convert.ToInt32(tsDto.Single().KinhNghiemToiThieu);
        }
        public int MucCapXang()
        {
            DoixeDataContext DX = new DoixeDataContext();
            IEnumerable<THAMSO> tsDto;
            tsDto = from ts in DX.THAMSOs select ts;
            return Convert.ToInt32(tsDto.Single().MucCapXang);
        }
        public int SoLitToiDa()
        {
            DoixeDataContext DX = new DoixeDataContext();
            IEnumerable<THAMSO> tsDto;
            tsDto = from ts in DX.THAMSOs select ts;
            return Convert.ToInt32(tsDto.Single().SoLitToiDa);
        }
    }
}
